.class public Lcom/estrongs/android/pop/app/analysis/e;
.super Ljava/lang/Object;
.source "AnalysisInstallAppManager.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/pop/app/analysis/e$c;,
        Lcom/estrongs/android/pop/app/analysis/e$d;,
        Lcom/estrongs/android/pop/app/analysis/e$b;
    }
.end annotation


# static fields
.field public static f:Ljava/lang/String; = "appName"

.field public static g:Ljava/lang/String; = "packageName"

.field public static h:Ljava/lang/String; = "noti_style"

.field public static i:Ljava/lang/String; = "is_uninstall_app"

.field public static j:Ljava/lang/String; = "com.estrongs.analysis.sensitive"

.field public static k:Ljava/lang/String; = "com.estrongs.analysis.action.NOTIFICATION_REMOVED"


# instance fields
.field private a:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/util/ArrayList<",
            "Les/mg$r;",
            ">;>;"
        }
    .end annotation
.end field

.field private b:Lcom/estrongs/android/ui/notification/c;

.field private c:Ljava/util/concurrent/BlockingQueue;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/BlockingQueue<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private d:Ljava/util/Timer;

.field private e:Z


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method private constructor <init>()V
    .locals 1

    .line 2
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 3
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/analysis/e;->e:Z

    .line 4
    new-instance v0, Ljava/util/concurrent/LinkedBlockingDeque;

    invoke-direct {v0}, Ljava/util/concurrent/LinkedBlockingDeque;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/e;->c:Ljava/util/concurrent/BlockingQueue;

    .line 5
    new-instance v0, Ljava/util/Timer;

    invoke-direct {v0}, Ljava/util/Timer;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/e;->d:Ljava/util/Timer;

    .line 6
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/e;->a:Ljava/util/Map;

    return-void
.end method

.method synthetic constructor <init>(Lcom/estrongs/android/pop/app/analysis/e$a;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/analysis/e;-><init>()V

    return-void
.end method

.method public static d()Lcom/estrongs/android/pop/app/analysis/e;
    .locals 1

    .line 1
    sget-object v0, Lcom/estrongs/android/pop/app/analysis/e$b;->a:Lcom/estrongs/android/pop/app/analysis/e;

    return-object v0
.end method


# virtual methods
.method public a(Landroid/content/Context;Ljava/lang/String;)V
    .locals 3

    .line 9
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/4 v1, 0x1

    const/16 v2, 0x1a

    if-lt v0, v2, :cond_0

    .line 10
    invoke-static {}, Lcom/estrongs/android/pop/app/analysis/d;->a()Lcom/estrongs/android/pop/app/analysis/d;

    move-result-object v0

    invoke-virtual {v0, p1, p2, v1}, Lcom/estrongs/android/pop/app/analysis/d;->a(Landroid/content/Context;Ljava/lang/String;Z)V

    goto :goto_0

    .line 11
    :cond_0
    new-instance v0, Landroid/content/Intent;

    const-class v2, Lcom/estrongs/android/pop/app/analysis/AnalysisInstallAppService;

    invoke-direct {v0, p1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 12
    sget-object v2, Lcom/estrongs/android/pop/app/analysis/e;->g:Ljava/lang/String;

    invoke-virtual {v0, v2, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 13
    sget-object p2, Lcom/estrongs/android/pop/app/analysis/e;->i:Ljava/lang/String;

    invoke-virtual {v0, p2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 14
    invoke-virtual {p1, v0}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    :goto_0
    return-void
.end method

.method public a(Lcom/estrongs/android/ui/notification/c;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/analysis/e;->b:Lcom/estrongs/android/ui/notification/c;

    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/e;->b:Lcom/estrongs/android/ui/notification/c;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/estrongs/android/ui/notification/c;->a()V

    const/4 v0, 0x0

    .line 4
    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/e;->b:Lcom/estrongs/android/ui/notification/c;

    .line 5
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/e;->c:Ljava/util/concurrent/BlockingQueue;

    invoke-interface {v0}, Ljava/util/concurrent/BlockingQueue;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_1

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/e;->c:Ljava/util/concurrent/BlockingQueue;

    invoke-interface {v0, p1}, Ljava/util/concurrent/BlockingQueue;->remove(Ljava/lang/Object;)Z

    :cond_1
    return-void
.end method

.method public a(Ljava/lang/String;Ljava/util/ArrayList;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/ArrayList<",
            "Les/mg$r;",
            ">;)V"
        }
    .end annotation

    .line 15
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/e;->a:Ljava/util/Map;

    monitor-enter v0

    if-eqz p1, :cond_0

    if-eqz p2, :cond_0

    .line 16
    :try_start_0
    invoke-virtual {p2}, Ljava/util/ArrayList;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_0

    .line 17
    iget-object v1, p0, Lcom/estrongs/android/pop/app/analysis/e;->a:Ljava/util/Map;

    invoke-interface {v1, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 18
    :cond_0
    monitor-exit v0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p1
.end method

.method public a(Z)V
    .locals 0

    .line 7
    iput-boolean p1, p0, Lcom/estrongs/android/pop/app/analysis/e;->e:Z

    return-void
.end method

.method public a()Z
    .locals 1

    .line 8
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/analysis/e;->e:Z

    return v0
.end method

.method public b(Ljava/lang/String;)Ljava/util/ArrayList;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/ArrayList<",
            "Les/mg$r;",
            ">;"
        }
    .end annotation

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/e;->a:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/util/ArrayList;

    return-object p1
.end method

.method public b(Landroid/content/Context;Ljava/lang/String;)V
    .locals 0

    .line 2
    invoke-virtual {p0, p2}, Lcom/estrongs/android/pop/app/analysis/e;->c(Ljava/lang/String;)Landroid/content/Intent;

    move-result-object p2

    invoke-virtual {p1, p2}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V

    return-void
.end method

.method public b()Z
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/e;->b:Lcom/estrongs/android/ui/notification/c;

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public c(Ljava/lang/String;)Landroid/content/Intent;
    .locals 2

    .line 10
    new-instance v0, Landroid/content/Intent;

    sget-object v1, Lcom/estrongs/android/pop/app/analysis/e;->k:Ljava/lang/String;

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 11
    sget-object v1, Lcom/estrongs/android/pop/app/analysis/e;->g:Ljava/lang/String;

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    return-object v0
.end method

.method public c()V
    .locals 2

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/e;->b:Lcom/estrongs/android/ui/notification/c;

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/e;->c:Ljava/util/concurrent/BlockingQueue;

    invoke-interface {v0}, Ljava/util/concurrent/BlockingQueue;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_0

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/e;->c:Ljava/util/concurrent/BlockingQueue;

    invoke-interface {v0}, Ljava/util/concurrent/BlockingQueue;->peek()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 9
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v1

    invoke-virtual {p0, v1, v0}, Lcom/estrongs/android/pop/app/analysis/e;->c(Landroid/content/Context;Ljava/lang/String;)V

    :cond_0
    return-void
.end method

.method public c(Landroid/content/Context;Ljava/lang/String;)V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/e;->c:Ljava/util/concurrent/BlockingQueue;

    invoke-interface {v0, p2}, Ljava/util/concurrent/BlockingQueue;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/e;->c:Ljava/util/concurrent/BlockingQueue;

    invoke-interface {v0, p2}, Ljava/util/concurrent/BlockingQueue;->offer(Ljava/lang/Object;)Z

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/e;->b:Lcom/estrongs/android/ui/notification/c;

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Lcom/estrongs/android/ui/notification/c;->d()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 4
    :cond_1
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/analysis/e;->a()Z

    move-result v0

    if-nez v0, :cond_2

    const/4 v0, 0x1

    .line 5
    invoke-virtual {p0, v0}, Lcom/estrongs/android/pop/app/analysis/e;->a(Z)V

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/e;->d:Ljava/util/Timer;

    new-instance v1, Lcom/estrongs/android/pop/app/analysis/e$d;

    invoke-direct {v1, p0, p1, p2}, Lcom/estrongs/android/pop/app/analysis/e$d;-><init>(Lcom/estrongs/android/pop/app/analysis/e;Landroid/content/Context;Ljava/lang/String;)V

    const-wide/16 p1, 0x7530

    invoke-virtual {v0, v1, p1, p2}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;J)V

    :cond_2
    return-void
.end method

.method public d(Ljava/lang/String;)V
    .locals 2

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/e;->a:Ljava/util/Map;

    monitor-enter v0

    .line 3
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/android/pop/app/analysis/e;->a:Ljava/util/Map;

    invoke-interface {v1, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    .line 4
    monitor-exit v0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p1
.end method

.method public e(Ljava/lang/String;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/e;->c:Ljava/util/concurrent/BlockingQueue;

    invoke-interface {v0}, Ljava/util/concurrent/BlockingQueue;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/e;->c:Ljava/util/concurrent/BlockingQueue;

    invoke-interface {v0, p1}, Ljava/util/concurrent/BlockingQueue;->remove(Ljava/lang/Object;)Z

    :cond_0
    return-void
.end method

.method public f(Ljava/lang/String;)V
    .locals 3

    .line 1
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/app/analysis/e;->a(Ljava/lang/String;)V

    .line 2
    iget-object p1, p0, Lcom/estrongs/android/pop/app/analysis/e;->c:Ljava/util/concurrent/BlockingQueue;

    invoke-interface {p1}, Ljava/util/concurrent/BlockingQueue;->isEmpty()Z

    move-result p1

    if-nez p1, :cond_0

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/pop/app/analysis/e;->d:Ljava/util/Timer;

    new-instance v0, Lcom/estrongs/android/pop/app/analysis/e$c;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/estrongs/android/pop/app/analysis/e$c;-><init>(Lcom/estrongs/android/pop/app/analysis/e;Lcom/estrongs/android/pop/app/analysis/e$a;)V

    const-wide/32 v1, 0x6d67d0

    invoke-virtual {p1, v0, v1, v2}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;J)V

    :cond_0
    return-void
.end method
